<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
    <meta name="csrf_token" id="token" content="{{ csrf_token() }}">
    @include('public.h5_head')
    <title>用户审核</title>
    <link href="{{env('CDN_DOMAIN_NAME')}}/css/font-awesome.min.css" rel="stylesheet">
    <script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/rem.js"></script>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/commoncss/common.css"/>
    <link rel="stylesheet" type="text/css" href="{{ env('CDN_DOMAIN_NAME') }}/css/sell.css?v=1.0.2"/>
</head>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/commonjs/iscroll.js"></script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/app.js"></script>
<body onload="loaded()">
<div id="box_Sell">
    <div class="wrap">
        <div class="main_Sell">
            <ul class="Sell_ul">
                <li class="Sell_li">
                    <span class="Sell_sp">客户信息</span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sps">客户姓名</span>
                    <span class="Sell_info">{{ $userinfo->username }}</span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sps">微信号</span>
                    <span class="Sell_info">{{ $userinfo->wechat_code }}</span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sps">手机号码</span>
                    <span class="Sell_info">{{ $user->user_tel }}</span>
                </li>
                <li class="Sell_lis">
                    <span class="Sell_sps">店铺地址</span>
                    <textarea class="Sell_txt" readonly UNSELECTABLE="on" onfocus="this.blur()">{{ $userinfo->user_area.$userinfo->area_detail }}</textarea>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sps">意向品牌</span>
                    <div class="intention_div">
                    @if(strlen($userinfo->intention_brand) > 5 )
                        <?php
                            $brands = explode(',',trim($userinfo->intention_brand,',') );
                        ?>
                        @foreach($brands as $k=>$v)
                    <span class="intention on">{{ $v }}</span>
                            @endforeach
                        @else
                        无
                        @endif
                    </div>

                </li>
                <li class="Sell_li">
                    <span class="Sell_sps">推荐人</span>
                    <input type="text" class="Sell_info" readonly UNSELECTABLE="on" value="{{ $user->recommender }}" onfocus="this.blur()"  placeholder="无">
                </li>
                <li class="Sell_li">
                    <span class="Sell_sp">同区客户信息</span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sp">客户数量</span>
                    <span class="info_sp">{{ $datas['count'] }}</span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sp">签约客户(是/否)</span>
                    <span class="info_sp">
                        @if($datas['sign_brand'])
                            是
                        @else
                            否
                        @endif
                    </span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sp">VIP数量</span>
                    <span class="info_sp">{{ $datas['vip'] }}</span>
                </li>
                <li class="Sell_li">
                    <span class="Sell_sp">同区拿货量</span>
                </li>
            </ul>
            <?php
            $brands = [1=>'Soyyos',2=>'SoonWord']
            ?>
            <ol class="Operate_ol">
                @if(count($datas['area']) > 0)
                    @foreach($datas['area'] as $k=>$v)
                        <li class="Operate_lis">
                            <p class="Operate_p"><span class="Operate_name">{{ $k }}</span></p>
                            @foreach($brands as $ks=>$vs)
                                @if(!empty($v[$ks]))
                                    <p class="Operate_p"><span class="Operate_name">{{ $vs }}</span><span class="Operate_num">{{ $v[$ks] }}<em>/手</em></span></p>
                                @else
                                    <p class="Operate_p"><span class="Operate_name">{{ $vs }}</span><span class="Operate_num">0<em>/手</em></span></p>
                                @endif
                            @endforeach
                        </li>
                    @endforeach
                @endif
            </ol>
            <div class="kong"></div>
        </div>
    </div>

    @if($user->user_status == 2)
    <div class="Sell_bottom">
        <span class="Sell_left"><i class="fa fa-times"></i>不通过</span>
        <span class="Sell_right"><i class="fa fa-check"></i>通过</span>
    </div>
    @elseif($user->user_status == 1)
        <div class="dis_div pass">已通过</div>
    @elseif($user->user_status == -1)
        <div class="dis_div noPass">未通过</div>
    @endif
    <div class="Sell_hide" style="display:none;"></div>
</div>
<script>
    var user_id='{{ $uid }}';
</script>
<script src="{{ env('CDN_DOMAIN_NAME') }}/js/sell.js?v=1.0.1"></script>
</body>
</html>
